﻿@{
    ViewData["Title"] = "ShowInvoice";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="example1"></div>
@*
    --------------
    页面底部JS脚本
    --------------
*@
@section scripts{
    <script src="~/content/admin/lib/PDFObject/pdfobject.min.js"></script>
    <script type="text/javascript">
        (function ($) {
            $.mainu = {
                init: function () {
                    //检测浏览器是否支持PDFObject
                    if (PDFObject.supportsPDFs) {
                        var options = {
                        };
                        PDFObject.embed("@Html.Raw(ViewBag.FileUrl)", document.body, options);
                    } else {
                        layer.alert('浏览器不支持PDFObject！', { icon: 5 });
                    }
                }
            };
            $(function () {
                $.mainu.init();
            });
        })(jQuery);
    </script>
}
